//
//  HomeTableCell.m
//  FPTest
//
//  Created by zhaohong on 2017/11/22.
//  Copyright © 2017年 zhaohong. All rights reserved.
//

#import "HomeTableCell.h"

@interface HomeTableCell()
//由cell的xib拖动而来，这两个属性如果其它类用不到的话应该放在.m文件中，在.h文件中我们只放置对外开放的属性，
@property (weak, nonatomic) IBOutlet UILabel *nameLab;//姓名
@property (weak, nonatomic) IBOutlet UILabel *schoolLab;//学校名称

@end
@implementation HomeTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

//tableView刷新时都会调用此方法，所以我在这个里面对组件进行赋值操作
- (void)layoutSubviews{
    [super layoutSubviews];
    self.nameLab.text = self.model.name;
    self.schoolLab.text = self.model.school;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
